﻿<%@ Page Title="Sistema - Academico Disciplina" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Disciplina.aspx.cs" Inherits="Disciplina" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
    .style1
    {
        font-size: medium;
        font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <h2>
    <strong><span class="style1">Disciplinas:</span></strong></h2>
<br />
<asp:Button ID="Button1" runat="server" Text="Nova Disciplina" 
        onclick="Button1_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />
<br />
<br />
<asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" 
        AutoGenerateColumns="False">
    <Columns>
        <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" 
            SortExpression="id" />
        <asp:BoundField DataField="Nome" HeaderText="Disciplinas:" 
            SortExpression="Nome" />
        <asp:HyperLinkField DataNavigateUrlFields="id" 
            DataNavigateUrlFormatString="DisciplinaInserir.aspx?id={0}" Text="Alterar" />
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DataObjectTypeName="Dominio.DisciplinaVO" DeleteMethod="excluir" 
        InsertMethod="salvar" SelectMethod="list" TypeName="Negocio.DisciplinaNegocio" 
        UpdateMethod="salvar">
    <SelectParameters>
        <asp:Parameter Name="nome" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
<br />
</asp:Content>

